FROM java:8
MAINTAINER coola58 "yankaili2006@gmail.com"

ENV APP_HOME /myapp
ENV LANG C.UTF-8

RUN mkdir -p $APP_HOME
WORKDIR $APP_HOME

#update system timezone
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

#update application timezone
RUN echo "Asia/Shanghai" > /etc/timezone

COPY target/cmpp-server.jar $APP_HOME/app.jar

CMD java -jar $JAVA_OPTS app.jar
